CC=gcc

CFLAGS = -ansi -c -Wall -pedantic -D_GNU_SOURCE

all: mcast start_mcast recv_dbg


bcast: recv_dbg.o
	$(CC) -o recv_dbg recv_dbg.o 

mcast: mcast.o
	$(CC) -o mcast mcast.o 

start_mcast: start_mcast.o
	$(CC) -o start_mcast start_mcast.o 

clean:

	rm *.o
	rm recv_dbg
	rm mcast
	rm start_mcast

%.o:    %.c
	$(CC) $(CFLAGS) $*.c

